package org.geekbang.thinking.in.spring.bean.factory;

import org.geekbang.thinking.in.spring.ioc.overview.domain.User;

/**
 * {@link User} 工厂类
 *
 * <p>
 * manager层接口及其实现应当准守符合微医开发规约，当前已集成参数校验规则，详情请见
 * <a href="https://gi.guahao.cn/docbook/service/validation.html">
 * </p>
 *
 * @author wangyh2
 * @version v1.0
 * @since 2021-09-13 20:43
 */
public interface UserFactory {
    default User createUser() {
        return User.createUser();
    }

    void initUserFactory();

    void doDestroy();
}
